package top.xiaoazi.futureletterserver.module.user.mapper;

import org.apache.ibatis.annotations.Mapper;
import top.xiaoazi.futureletterserver.module.user.entity.User;
import top.xiaoazi.futureletterserver.module.user.vo.UserRedisVO;

import java.util.List;

@Mapper
public interface UserMapper {


    User getByUsername(User user);


    int upPassword(User user);

    List<User> getAllUser(Integer pageSize, String username, int offset);

    User getByUserId(Integer userId);

    String getCsdnCookie(UserRedisVO user);

    int setCsdnCookie(String csdnCookie, Integer userId);

    Integer getCsdnCookieState(Integer userId);

    Integer getCurUsePersonCount();

    void resetUsableCsdnScriptCount();

    int systemReg(User user);

    int setOtherCommentToMe(User user);

    String getOtherCommentToMe(Integer userId);

    String getReplyCommentToOther(Integer userId);

    int setReplyCommentToOther(User user);

    int setUserImg(User user);

    int modifyUserinfo(User user);

    User isExistEmail(String email);

    int reg(User user);

    Integer getAllCount(String username);

    int sysUpdate(User user);

    int modifyPassword(User user);
}
